home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93c.txt
/
000041_icon-group-sender _Mon Sep 6 12:57:15 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1994-02-02
|
1KB
Received: from owl.CS.Arizona.EDU by cheltenham.cs.arizona.edu; Mon, 6 Sep 1993 12:57:15 MST
Received: by owl.cs.arizona.edu; Mon, 6 Sep 1993 12:57:13 MST
Via: uk.ac.edinburgh.festival; Mon, 6 Sep 1993 08:28:53 +0100
Date: 06 Sep 93 08:28:46 BST
From: R J Hare <rjhare@festival.ed.ac.uk>
Subject: returning results from procedure
To: icon-group@cs.arizona.edu
Reply-To: r.j.hare@edinburgh.ac.uk
Organisation: Edinburgh University Computing Service
Message-Id: <9309060828.aa21320@uk.ac.ed.festival>
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
I've been using Icon for seberal years now, but recently I stumbled across a
'problem' for the fist time - I wanted to return more than one result from a
procedure (yup - strange to relate, after several years I had never needed to
do this before).
What I want to know is "what is the 'best' way to return several results from
a procedure?'. One obvious way to do it is to use a list:
procedure myproc
.
list_of_results:=[]
.
.
list_of_results[1]:=...
list_of_results[2]:=...
.
.
return list_of_results
end
but I guess that one could use a record.
Any thoughts on which is best?
Thanks.
Roger Hare